package erfen;


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;

// 求立方根
public class Test02 {
    static double eps = 1e-12;

    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int T = 1;
        T = Integer.parseInt(in.readLine());
        while (T-- > 0) {
            double n = Double.parseDouble(in.readLine());
            double l = 0, r = 100000, res = 0;
            while (l <= r) { // 二分法查找答案
                double mid = (l + r) / 2;
                if (Math.abs(mid * mid * mid - n) <= eps) { // 满足精度
                    res = mid;
                    break;
                }
                if (mid * mid * mid > n) r = mid - 0.0001;
                else if (mid * mid * mid < n) l = mid + 0.0001; res = mid; // 当满足条件不满足精度时返回一个近似值
            }
            DecimalFormat df = new DecimalFormat("0.000");
            System.out.println(df.format(res)); // 保留有效数字并输出结果
        }
    }
}
